<?php

/**
 * PreReclamo0800Form
 *
 */
class PreReclamo0800Form extends sfForm
{
  public function configure()
  {
    $this->setWidget('tipo_atencion', new sfWidgetFormPropelChoice(array(
      'model'     => 'TipoAtencion'
      )));

    $this->setWidget('asunto', new sfWidgetFormPropelChoice(array(
      'model'     => 'Asunto',
      'order_by' => array('Orden', 'asc')
      )));

    $this->getWidget("asunto")->setOption('renderer_class', 'mbWidgetFormChosenChoice');
    $this->getWidget("tipo_atencion")->setOption('renderer_class', 'mbWidgetFormChosenChoice');

    $this->widgetSchema->setLabel('tipo_atencion', 'Tipo de atención');
  }
}
